package cn.csc.module.product.validated;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author: 云隐
 * @Date: 2024/01/13
 **/
@Documented
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE_USE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy =CheckPriceIntervalValidator.class)
public @interface CheckPriceInterval {

    String start() default "";

    String end() default "";

    String verify() default "";

    String message() default "{}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
